package com.gpStudy.design.classLoader;

public class StaticTest {

    public static void main(String[] args){
        new Dog();
    }
}
class Animal{
    static{
        System.out.print("a");
    }
    public Animal(){
        System.out.print("b");
    }
}
class Dog extends Animal{
    Cat cat = new Cat();
    public Dog(){
        System.out.print("c");
    }
    static{
        System.out.print("f");
    }
}
class Cat extends Animal{
    public Cat(){
        System.out.print("d");
    }
    static{
        System.out.print("e");
    }
}
